package core.schedule.snake.data.domain;

import java.util.Date;

public class DsfaTask {
	
	public static final String STATUS_BEFORE="0";
	public static final String STATUS_START="1";
	public static final String STATUS_OVER="2";
	public static final String STATUS_EXCEPTION="3";
	
	private String id;
	
	/**
	 * 任务名称
	 */
	private String taskName;
	
	/**
	 * 任务类型
	 */
	private String taskType;
	
	/**
	 * 计划开始时间
	 */
	private Date planStartTime;
	
	/**
	 * 开始时间
	 */
	private Date startTime;
	
	/**
	 * 结束时间
	 */
	private Date endTime;
	
	/**
	 * 任务状态
	 */
	private String taskStatus;
	
	/**
	 * 任务结果
	 */
	private String taskResult;
	
	/**
	 * 创建人
	 */
	private String createId;
	
	/**
	 * 创建日期
	 */
	private Date creteTime;
	
	/**
	 * 任务规则
	 */
	private String taskRule;
	
	/**
	 * 执行类型（1：循环执行 2：根据规则定义时间定时执行）
	 */
	private int timmerType=1;
	
	/**
	 * 执行周期描述
	 */
	private String exectStr;
	
	
	public String toString() {
		String result=
		" taskName:"+taskName+
		"\r\n taskType:"+taskType+
		"\r\n planStartTime:"+planStartTime+
		"\r\n startTime:"+startTime+
		"\r\n endTime:"+endTime+
		"\r\n taskStatus:"+taskStatus+
		"\r\n taskResult:"+taskResult+
		"\r\n createId:"+createId+
		"\r\n creteTime:"+creteTime+
		"\r\n exectStr:"+exectStr
		;
		return result;
	}
	

	public String getTaskName() {
		return taskName;
	}

	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}

	public String getTaskType() {
		return taskType;
	}

	public void setTaskType(String taskType) {
		this.taskType = taskType;
	}

	public Date getPlanStartTime() {
		return planStartTime;
	}

	public void setPlanStartTime(Date planStartTime) {
		this.planStartTime = planStartTime;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String getTaskStatus() {
		return taskStatus;
	}

	public void setTaskStatus(String taskStatus) {
		this.taskStatus = taskStatus;
	}

	public String getTaskResult() {
		return taskResult;
	}

	public void setTaskResult(String taskResult) {
		this.taskResult = taskResult;
	}

	public String getCreateId() {
		return createId;
	}

	public void setCreateId(String createId) {
		this.createId = createId;
	}

	public Date getCreteTime() {
		return creteTime;
	}

	public void setCreteTime(Date creteTime) {
		this.creteTime = creteTime;
	}


	public String getId() {
		return id;
	}


	public void setId(String id) {
		this.id = id;
	}
	public String getTaskRule() {
		return taskRule;
	}
	public void setTaskRule(String taskRule) {
		this.taskRule = taskRule;
	}
	public int getTimmerType() {
		return timmerType;
	}
	public void setTimmerType(int timmerType) {
		this.timmerType = timmerType;
	}
	public String getExectStr() {
		return exectStr;
	}
	public void setExectStr(String exectStr) {
		this.exectStr = exectStr;
	}

	
}
